home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 84 / 084.d81 / toolbox demo (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  4KB  |  116 lines

  1. 100 dv=peek(186):ifdv<8thendv=8
  2. 110 ifa=0thena=1:load"sys toolbox.o",dv,1
  3. 120 dimf(8),fa(5),c(20)
  4. 130 fori=0to8:readf(i):next:fori=1to5:readfa(i):next
  5. 140 fori=0to12:readc(i):next
  6. 150 poke53281,0:poke53280,0:print:print"[147]"
  7. 160 gosub1080:sys49152,7,0,15,0,39,160,5
  8. 170 sys49152,7,2,14,2,38,160,11
  9. 180 sys49152,7,1,13,1,37,224,0
  10. 190 sys49152,4,6:rem stash the screen
  11. 200 gosub1170
  12. 210 print"[155][160][160][160][160][160][160][211][195][210][197][197][206][160][212][207][207][204][194][207][216]"
  13. 220 print"by[160][210]ick[160][206]ash & [202]eff [202]ones"
  14. 230 print"[212]hirteen utilities for your programs
  15. 240 [153]"ascor shorter yet snazzier programs
  16. 250 print"[208]ress any key to continue
  17. 260 [161]a$:[139]a$[178]""[167]260
  18. 270 [141]1130:[141]1170
  19. 280 [153]"list(NULL)ith every command, your line links
  20. 290 print"are kept clear.  [212]his means that
  21. 300 [153]"even on the busiest screens,
  22. 310 print "there's no more guessing where the
  23. 320 [153] "cursor will land.
  24. 330 print "[208]ress any key to continue"
  25. 340 geta$:ifa$=""then340
  26. 350 gosub1130:gosub1170
  27. 360 print"[217]ou can move a line anywhere
  28. 370 [153]"on the screen, or copy it.
  29. 380 print "[208]ress any key for example"
  30. 390 geta$:ifa$=""then390
  31. 400 d=24:fors=14to0step-1:sys49152,1,s,d:d=d-1:next
  32. 410 print"   [159][201]t took only one [198][207][210]-[206][197][216][212] loop to
  33. 420 [153]"move the box from the top to the"
  34. 430 [153]"bottom of the screen.  (NULL)he (NULL)(NULL)(NULL)val
  35. 440 print"function doubles as a [195][207][208][217] function.
  36. 450 [153]"len(NULL)(NULL)(NULL) is the same as move, but won't
  37. 460 print"erase the line of origin.
  38. 470 [153] "(NULL)ress any key for example"
  39. 480 [161]a$:[139]a$[178]""[167]480
  40. 490 d[178]0:[129]s[178]10[164]24:[158]49152,1,s[170]128,d:d[178]d[170]1:[130]
  41. 500 [161]a$:[139]a$[178]""[167]500
  42. 510 [141]1120:[141]1170
  43. 520 [153]"list(NULL)ou can also send messages to your
  44. 530 print"users with one [211][217][211].  [212]he message
  45. 540 [153]"will wait for the user to press
  46. 550 print"any key.  [212]hat keypress will
  47. 560 [153]"not be cleared from the keyboard
  48. 570 print"buffer.
  49. 580 [153] "(NULL)ress any key for example"
  50. 590 [161]a$:[139]a$[178]""[167]590
  51. 600 [146]197,64:[158]49152,2,"(NULL)ress any key to exit this message"
  52. 610 [141]1130:[141]1170
  53. 620 [153]"list(NULL)ou also have any of nine screens"
  54. 630 [153]"that you can call by number."
  55. 640 [153]"right$'ve only been using (NULL)(NULL)val througout"
  56. 650 [153]"this demo.":[141]1190
  57. 660 [141]1130:[141]1170
  58. 670 [153]"list(NULL)ou can also read text files with"
  59. 680 [153]"one (NULL)(NULL)(NULL).":[141]1190
  60. 690 [158]49152,13,8,[198]("\"),"text":[141]1120:[141]1130:[141]1170
  61. 700 [153]"listleft$ere are quick examples of a"
  62. 710 [153]"few other commands you have at
  63. 720 print"your disposal.
  64. 730 [158]49152,2,"100 boxes comin' up!  (NULL)ress (NULL)(NULL)atnlenval...":[161]a$
  65. 740 [129]i[178]1[164]100
  66. 750 [158]49152,7,[187](ti)[172]12[170]1,[187](ti)[172]12[170]12,[187](ti)[172]20[170]1,[187](ti)[172]20[170]19,160,i:[130]
  67. 760 [141]1120:[141]1130:[141]1170
  68. 770 [153]"listatn box can be any color and "
  69. 780 [153]"made up of any character:
  70. 790 sys49152,2,"[208]ress [211][208][193][195][197] for example":geta$
  71. 800 fori=1to100
  72. 810 sys49152,7,rnd(ti)*12+1,rnd(ti)*12+12,rnd(ti)*20+1,rnd(ti)*20+19,i,i:next
  73. 820 gosub1120:gosub1130:gosub1170
  74. 830 print"[155][217]ou can fill any section of"
  75. 840 print"screen with any color.  [206]ote
  76. 850 [153]"how only the color is being
  77. 860 print"changed.  [212]he screen stays the
  78. 870 [153]"same.  (NULL)ince this screen is mostly
  79. 880 print"reverse spaces, the fill will look
  80. 890 [153]"like a box command in places.
  81. 900 sys49152,2,"[208]ress [211][208][193][195][197] for example":geta$
  82. 910 fori=1to100
  83. 920 sys49152,6,rnd(ti)*12+1,rnd(ti)*12+12,rnd(ti)*20+1,rnd(ti)*20+19,i:next
  84. 930 gosub1120:gosub1130:gosub1170
  85. 940 print"[155][217]ou can reverse any section"
  86. 950 print"of the screen.":sys49152,4,7
  87. 960 sys49152,2,"[208]ress [211][208][193][195][197] for example":geta$
  88. 970 fori=1to20:sys49152,11,0,24,20,39,128:ford=1to150:next:next
  89. 980 gosub1120:gosub1130:gosub1170
  90. 990 print"[155][201]n case you forget how to use"
  91. 1000 print"[211][217][211][160][212][207][207][204][160][194][207][216], a help function is
  92. 1010 [153]"included.  mid$ust type 'sys49152,0'
  93. 1020 print"for the help screens.
  94. 1030 [158]49152,2,"(NULL)ress (NULL)(NULL)atnlenval to see the help screens":[161]a$:[158]49152,0
  95. 1040 [158]49152,5,6:[141]1170
  96. 1050 [158]49152,2,"str$emo again or (NULL)uit? (str$/(NULL))":[161]a$:[139]a$[179][177]"d"[175]a$[179][177]"q"[167]1050
  97. 1060 [151]212,0:[139]a$[178]"d"[167][156]:[137]120
  98. 1070 [137]1200
  99. 1080 [129]i[178]0[164]11:[158]49152,7,i,24[171]i,i,39[171]i,160,c(i):[130]:[142]
  100. 1090 [131]224,96,100,111,121,98,248,247,227
  101. 1100 [131]1,15,12,11,0
  102. 1110 [131],3,14,6,4,2,9,8,10,1,15,12,11
  103. 1120 [143] fade grey
  104. 1130 [158]49152,10,15,12
  105. 1140 [158]49152,10,12,11
  106. 1150 [158]49152,5,6
  107. 1160 [142]
  108. 1170 [129]i[178]1[164]8:[158]49152,7,1,13,1,37,f(i),15:[130]
  109. 1180 [158]49152,7,1,13,1,37,224,15:[142]
  110. 1190 [158]49152,2,"(NULL)ress any key to continue...":[142]
  111. 1200 a$[178]"hello connect":[159]15,8,15,"r0:"[170]a$[170]"="[170]a$:[132]15,er:[160]15
  112. 1210 [139] er[179][177]63 [167] [153]"load":[128]
  113. 1220 q$[178][199](34):[151]646,[194](53281):[153]"load"
  114. 1230 [153]"load"q$a$q$",8"
  115. 1240 [153]"run":[151]631,13:[151]632,13:[151]198,2:[128]
  116.